package com.edu.hre.struts.form.admin;

import java.util.ArrayList;
import java.util.List;

import org.apache.struts.action.ActionForm;

import com.edu.hre.common.entity.HrePageInfo;

public class ProjectListForm extends ActionForm {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8696698650789509605L; 
	
	private String customerName = "";
	private String project = "";
	private String projectAdmin = "";
	
	private List<ProjectForm> allProjects = new ArrayList<ProjectForm>();
	private List<HrePageInfo> listPages = new ArrayList<HrePageInfo>();
	
	private String sortBy = null;
	private boolean isAsc = false;
	
	private int totalItems = 0;
	private int totalPage = 0;
	
	private boolean canDelete = false;
	private boolean canAdd = false;
	
	public String getSortBy() {
		return sortBy;
	}

	public void setSortBy(String sortBy) {
		this.sortBy = sortBy;
	}

	public boolean isAsc() {
		return isAsc;
	}

	public void setAsc(boolean isAsc) {
		this.isAsc = isAsc;
	}

	public ProjectListForm() {
	
	}
	
	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getProject() {
		return project;
	}

	public void setProject(String project) {
		this.project = project;
	}

	public String getProjectAdmin() {
		return projectAdmin;
	}

	public void setProjectAdmin(String projectAdmin) {
		this.projectAdmin = projectAdmin;
	}

	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public List<HrePageInfo> getListPages() {
		return listPages;
	}

	public void setListPages(List<HrePageInfo> listPages) {
		this.listPages = listPages;
	}

	public int getTotalItems() {
		return totalItems;
	}

	public void setTotalItems(int totalItems) {
		this.totalItems = totalItems;
	}

	public boolean isCanDelete() {
		return canDelete;
	}

	public void setCanDelete(boolean canDelete) {
		this.canDelete = canDelete;
	}

	public boolean isCanAdd() {
		return canAdd;
	}

	public void setCanAdd(boolean canAdd) {
		this.canAdd = canAdd;
	}

	public List<ProjectForm> getAllProjects() {
		return allProjects;
	}

	public void setAllProjects(List<ProjectForm> allProjects) {
		this.allProjects = allProjects;
	}
}
